<?php /* Smarty version Smarty-3.1.6, created on 2018-03-10 22:32:43
         compiled from "./Tpl/Admin\index.html" */ ?>
<?php /*%%SmartyHeaderCode:184455aa3ec8bd38bd3-56030359%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '53ef2c7c60b341eeceb2b9c26196c44ef616c41e' => 
    array (
      0 => './Tpl/Admin\\index.html',
      1 => 1494558134,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '184455aa3ec8bd38bd3-56030359',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'user' => 0,
    'menus' => 0,
    'menu' => 0,
    'item' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5aa3ec8bda235',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5aa3ec8bda235')) {function content_5aa3ec8bda235($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("Public/top.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<style>
    #slider{overflow-y: scroll}
    #content{overflow-y: hidden}
</style>
</head>
<body style="overflow-y: hidden">

<div id="warpper">
    <div class="header clearfix" id="header">
        <a href="javascript:void(0);" class="logo f_l"><img src="Public/Admin/img/logo.png" alt="" /></a>
        <div class="info f_r">
            <p><span>欢迎您，<?php echo $_smarty_tpl->tpl_vars['user']->value;?>
</span>|<a href="<?php echo u('Public/logout');?>
" class="logout">退出</a></p>
            <p></p>
        </div>
    </div>

    <div class="main">
        <!--菜单-->
        <div class="slider" id="slider" >
            <ul>
                <?php  $_smarty_tpl->tpl_vars['menu'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['menu']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['menus']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['menu']->key => $_smarty_tpl->tpl_vars['menu']->value){
$_smarty_tpl->tpl_vars['menu']->_loop = true;
?>
                <li>
                    <dl>
                        <dt class="<?php echo $_smarty_tpl->tpl_vars['menu']->value['class'];?>
"><?php echo $_smarty_tpl->tpl_vars['menu']->value['title'];?>
</dt>
                        <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['menu']->value['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
                        <dd><a href="<?php echo $_smarty_tpl->tpl_vars['item']->value[1];?>
" target="subContent" onclick="openLoading();"><?php echo $_smarty_tpl->tpl_vars['item']->value[0];?>
</a></dd>
                        <?php } ?>
                    </dl>
                </li>
                <?php } ?>
            </ul>
        </div>

        <div  id="content" style="position: relative;margin-left: 190px;box-sizing: border-box;" >
            <iframe name="subContent" rows="50%,50%" style=" position:absolute;margin:0;padding:0; height:100%;width:100%;right:0px;border:solid 0px red;" id="containerFrame" width="100%" height="100%"></iframe>
        </div>
    </div>


</div>
<?php echo $_smarty_tpl->getSubTemplate ("Public/foot.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<script>

//    $("dt").on('click',function(){
//        $(this).nextAll("dd").toggle()
//    });
    $('dd>a').on('click',function(){
        $('dd').removeClass("selected");
        $(this).parent().addClass("selected");
    });


    function resizeWindow(){
        $('#content,#slider').height($("body").height()-$('#header').height()-10);
    }
    $(document).ready(function(){
        resizeWindow();
    })
    $(window).resize(function(){
        resizeWindow();
    })

    function openLoading(){
       layer.msg('加载中，请稍候', {
            icon: 16,
            shade: [0.3, '#000'],
            time:10000
        });

        //此处用setTimeout演示ajax的回调
//        setTimeout(function(){
//          layer.close(li);
//        }, 2000);
    }
    function closeLoading() {
        layer.closeAll();
    }
</script>
</body>
</html><?php }} ?>